package edu.sctu.practice.class02.shuqiqi.practice.demo01;

/**
 * Created by admin on 2015/10/20.
 */
public class Main {
    public static void main(String[] args) {
        Dog dog1=new Dog();
        dog1.age=12;
        Dog dog2=new Dog();
        dog2.age=12;
        if(dog1.equals(dog2)){
            System.out.println("相同");
        }else {
            System.out.println("不同  ");
        }

    }
}
